#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "QSerialPort" //串口访问
#include "QSerialPortInfo" //串口端口信息访问
#include <QMessageBox>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private:
    Ui::Widget *ui;
    QSerialPort *SerialPort;

   public:
       void serialnit();
private slots:
       void on_Btn_openSerial_clicked();
       void serial_Read();
       void on_sendBox_clicked();
};

#endif // WIDGET_H
